package de.tum.in.eist.poll.pub.service;

import java.util.List;

import com.google.gwt.user.client.rpc.AsyncCallback;

import de.tum.in.eist.poll.pub.shared.Feedback;
import de.tum.in.eist.poll.pub.shared.Lecture;
import de.tum.in.eist.poll.pub.shared.User;

public interface ExtPollServiceAsync {

	void getUsers(AsyncCallback<List<User>> callback);

	void login(String name, String password, AsyncCallback<User> callback);

	void addFeedback(Feedback feedback, AsyncCallback<String> callback);

	void getFeedback(Lecture lecture, AsyncCallback<List<Feedback>> callback);

	void getLectures(User user, AsyncCallback<List<Lecture>> callback);
	
}
